package com.gta.edu.sdk.common.dto;



public class ResultRsp{
	
	public final static int FAIL = -1;   //通用错误
	public final static int SUCCESS = 0;    //成功
	public final static int NO_DATA = 1;    //成功无数据
	public final static int WARN = 2;       //后端提醒
	public final static int ERROR = 3;      //系统错误
	public final static int TOKEN_OUT = 4;  //登录超时
	public final static int LOGIN_OUT = 6;  //未登录
	public final static int LOGIN_FAILT = 7;  //登录失败
	public final static int SIGN_ERROR = 5; //加密签名错误

	public final static String SUCCESSMSG = "success";
	public final static String FAILMSG = "fail";
	public final static String PARAMETERERROR = "参数缺少或者不对";
	public final static String TOKENOUTMSG = "登录超时";
	public final static String LOGINOUTMSG = "未登录";
	public final static String SUCCESSNODATA = "成功没数据";
	public final static String LOGINFAILTMSG = "登录失败";
	
	public final static String ACCOUNTREPEATEERROR = "该账号已存在";
	public final static String ACCOUNTNOTEXISTSERROR = "该账号不存在";
	
	private int code;
	private String msg;
	private Object data;
	
	public ResultRsp(){
		this.code = SUCCESS;
		this.msg = SUCCESSMSG;
	}
	public ResultRsp(int code, String msg, Object data){
		this.code = code;
		this.msg = msg;
		this.data = data;
	}
	
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
}
